package sideral.ProcesamientoImagen;

import java.util.ArrayList;

public class Linea
{
	ArrayList<PixelGroup> aLPixelGroup;
	
	public Linea()
	{
		 aLPixelGroup=new ArrayList<PixelGroup>();
	}
	
	public boolean addPixelGroup(PixelGroup _pixelGroup)
	{
		if(aLPixelGroup.add(_pixelGroup))
			return true;
		
		else
			return false;
	}
	
	public PixelGroup getPixelGroup(int _index)
	{
		return aLPixelGroup.get(_index);
	}
	
	public int getSize()
	{
		return aLPixelGroup.size();
	}
}
